package com.framework.web.sys.domain;

import com.framework.core.domain.CommonEntity;
import com.framework.core.domain.IdEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by fusf on 2016/5/14.
 */
@Entity
@Table(name = "t_sys_code_items")
public class CodeItems extends CommonEntity implements java.io.Serializable {

    private String codeCategoryId;
    private String code;
    private String name;
    private int sortIndex;
    private String status;
    private String remark;
    private CodeCategory codeCategory;// 目录

    @ManyToOne(targetEntity = com.framework.web.sys.domain.CodeCategory.class)
    @JoinColumn(name = "CODE_CATEGORY_ID", insertable = false, updatable = false)
    public CodeCategory getCodeCategory() {
        return codeCategory;
    }

    public void setCodeCategory(CodeCategory codeCategory) {
        this.codeCategory = codeCategory;
    }

    @Basic
    @Column(name = "CODE_CATEGORY_ID")
    public String getCodeCategoryId() {
        return codeCategoryId;
    }

    public void setCodeCategoryId(String codeCategoryId) {
        this.codeCategoryId = codeCategoryId;
    }

    @Basic
    @Column(name = "CODE")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "SORT_INDEX")
    public int getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(int sortIndex) {
        this.sortIndex = sortIndex;
    }

}
